package com.lsj.threadtest.three;

public class ARunnable extends FRunnable {

    public ARunnable(int ru){
        super(ru);
    }
    public void run(){

           while(ru>0){
               ru=ru-1;
               if(ru<=0){
                   System.out.println("a到达终点，a胜利");
               }else{
                   System.out.println("a离终点"+ru);
               }
               try {
                   Thread.sleep(100);
               } catch (InterruptedException e) {
                   e.printStackTrace();
               }
           }

    }
}

